#SHADER Vertex
#version 330 core

layout(location = 0) in vec4 position;
layout(location = 1) in vec2 texCoord;

out vec2 v_TexCoord;

uniform mat4 u_MVP;

void main()
{
    gl_Position = u_MVP * position;
    v_TexCoord = texCoord;
}


#SHADER Fragment
#version 330 core

layout (location = 0) out vec4 color;
uniform vec4 u_Color;
uniform sampler2D u_Texture;

in vec2 v_TexCoord;

void main()
{
    vec4 textColor = texture(u_Texture, v_TexCoord);
    color = textColor;
}
